package iterables;

import java.util.*;

public class IterableOrdenado<T extends Comparable<T>> implements Iterable <T>{
		private Vector <T> v;

		public IterableOrdenado(Iterable<T> it1) {
			v = new Vector<T>();
			for(T aux : it1){
				v.add(aux);
			}
			java.util.Collections.sort(v);
		}
		public Iterator<T> iterator(){
			return  v.iterator();
		}
}
